package cn.bdqn.service.impl;

import cn.bdqn.mapper.AppVersionMapper;
import cn.bdqn.pojo.AppVersion;
import cn.bdqn.service.AppVersionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Transactional
@Service
public class AppVersionServiceImpl implements AppVersionService {
    @Resource
    private AppVersionMapper appVersionMapper;
    @Override
    public AppVersion getAppVersion(int vid) {
        return appVersionMapper.getAppVersion(vid);
    }

    @Override
    public List<AppVersion> selectAppInfoVersion(int id) {
        return appVersionMapper.selectAppInfoVersion(id);
    }

    @Override
    public int addAppVersion(AppVersion appVersion) {
        return appVersionMapper.addAppVersion(appVersion);
    }

    @Override
    public int updateFile(int id) {
        return appVersionMapper.updateFile(id);
    }

    @Override
    public int updateVersion(AppVersion appVersion) {
        return appVersionMapper.updateVersion(appVersion);
    }

    @Override
    public int delVersion(int id) {
        return appVersionMapper.delVersion(id);
    }
}
